package com.zbs.framework.dao.passport.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.util.Date;

/**
 * 登录记录实体类
 */

@Entity
@IdClass(MNLoginRecordId.class)
@Table(name = "mnt_login_record")
@Getter
@Setter
@NoArgsConstructor
public class MNLoginRecord{

    @Id
    private String uuid; // 账户的uuid

    @Id
    private String entryType; // 账户登入类型

    private String token; // token

    private Date lastLoginTime; // 最后一次登录时间
}
